Because some situations need to use the National Administrative Division database, itself does not have the library on the Internet to find, but found is basically not what I want, because it contains only the basic information,Finally himself under a primitive library to prepare their own assembly data, online XX data network Ah, Web services are limited, or to find their own way to get the hands of the mo
The address information of the city needs to be used in recent projects, but few of the XML data downloaded from the Internet are the latest address information... the data is too old, leading to incomplete information in some regions. That's why I think the weather forecast official website has the latest and most comprehensive data. Paste the
Data | Compression This article assumes that you are familiar with C # and Windows forms
Download the code for this article: ZipCompression.exe (150KB)
Summary
Using ZIP compression can save space and network bandwidth when storing files or sending files over the network. In addition, the directory structure of the zipped folder is not lost, making it a very u
Copy CodeThe code is as follows:
Class zip
{
var $datasec, $ctrl _dir = Array ();
var $eof _ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old _offset = 0; var $dirs = Array (".");
function get_list ($zip _name)
{
$zip = @fopen ($zip _name, ' RB ');
if (! $
is imported. The extract loop continuously calls Inflater. Inflate until inflate. Finished becomes true, indicating that all input data has been decompressed. Finally, call javastructmarshalhelper. converttostring to convert the unsigned byte array to a string to be returned by the function.
The cszipll sample application (LL stands for low level) creates a long string and compresses it to about half the size. You can use these functions to do some w
Recently developed projects require the use of provincial, municipal, and district data, because the projects to be developed are also e-commerce websites. when referring to the user experience of Vanke, it was found that it even had the latest released Guangming New Area in Shenzhen, and no data was updated on the Pat network. It seems that fanke is still responsible for
-1261unziptransformer.setworkdirectory (path); Unziptransformer.afterpropertiesset (); //Vulnerability Entry pointUnziptransformer.transform (evilmessage); }Catch(Exception e) {System.out.println (e); } }}The Unziptransformer.transform () in the example calls Doziptransform () to process the compressed packageThe process () in callback zipentrycallback processes the contents and files within the compressed package as it traversesZiputil.iterate (InputStream,NewZipentrycallback () {
Java.lang.unsatisfiedlinkerror:dalvik.system.pathclassloader[dexpathlist[[zip file "/ data/app/Project Package name -2/base.apk ", zip file"/data/app/Project package name -2/split_lib_dependencies_apk.apk ", zip file"/data/app/Pro
Example 1. download the prepared zip file first. php tool class. after downloading and decompressing the file, put the file in the corresponding directory. I put it in the include folder under the virtual directory. 2. add the following code to your php file: require_once./include/zip. php; $ zipnewPHS php compressed file zip
1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Copy codeThe Code is as follows:Require_once "./include/zip. php ";$
PrefaceJust now on the internet to inquire about the national provinces and Cities database, compared to the pit is a relatively comprehensive data, a comprehensive fee, the heart is very uncomfortable.But in the end, I got it. A slightly better national provincial and municipal database, and with left, simple spell, abbreviation, pinyin, Administrative Code, ZIP
Example of zip compression for php files1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Usage:Require_once "./include/zip. php ";$
Tags: var blog city style float null creat int arcNational provinces and Cities database, and with the left, simple spell, abbreviation, pinyin, Administrative Code, postcode, city three loadline data CREATE TABLE [dbo]. [Region] ([Id] [int] NULL, [Name] [nvarchar] ( +) NULL, [ParentID] [int] NULL, [shortname] [nvarchar] ( +) NULL, [LevelType] [int] NULL, [citycode] [varchar] ( -) NULL, [ZipCode] [varchar]
Normal export data using the mysqldump command
The code is as follows
Copy Code
Mysqldump-u root-p youdatabase tabename1 tablename2 > db.sql;
Export tablename1 and Tablename2 tables in Db.sql.
The code is as follows
Copy Code
1. Please download my prepared zip.php tool class, download and unzip, put the file in the corresponding directory, I was placed in the virtual directory under the Include folder.
2. Add the following code to your PHP file
Copy Code code as follows:
Require_once "./include/zip.php";
$zip = new Phpzip
This program can be quickly implemented to our files using PHP compression class compressed into our thinking zip, or rar compression package, suffix name can be customized Oh, compression algorithm is from a foreign site copy.
First instantiate and then pass the argument. Two parameters. First an array of your file addresses. The second is the absolute address of the compressed package file that you want to save.
For example:
The
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.